<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta charset="UTF-8">
	<title>店铺详情</title>
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />

<!-- 新模板 -->
<link rel="shortcut icon" href="<c:url value='/template/new_muban/images/favicon.ico'/>" type="image/x-icon"/>

<!-- 最新导入 -->
 <script type="text/javascript" src="<c:url value='/template/new_muban/js/jquery-min-1.7.js'/>"></script>
<link rel="stylesheet" href="<c:url value='/template/new_muban/css/font.css'/>">
<%--<link rel="stylesheet" href="<c:url value='/template/new_muban/css/xadmin.css'/>">    --%>
<script src="<c:url value='/template/new_muban/lib/layui/layui.js'/>" charset="utf-8"></script> 
<script type="text/javascript" src="<c:url value='/template/new_muban/js/xadmin.js'/>"></script>


<link rel="stylesheet" href="<c:url value='/template/new_muban/lib/layui/css/layui.css'/>"  media="all">


<style type="text/css">
	/*圆形头像  */
	/* #divcss5{ margin:10px auto}  */
	#divcss5 img{ border-radius:50%} 
	.x-so input.layui-input {
    	width: 150px;
	}
</style>
</head>
<body>
   
     <div class="x-body">
      <form class="layui-form">
     <div class="layui-form-item">
              <label for="username" class="layui-form-label">
                  <span class="x-red">*</span>选择车型
              </label>
              <div class="layui-input-inline">
                  <select id="g_id" name="modules" lay-verify="required" lay-search="">
          <option value="">请输入车型名称</option>
         
        </select>
              </div>
              <div class="layui-form-mid layui-word-aux">
                  <span class="x-red">*</span>想要车型  : ${clue.car_name}
              </div>
          </div>
          </form>
           
          <form action="" method="post" class="layui-form layui-form-pane">
               
                  <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">
                     店铺信息
                    </label>
                    <table  class="layui-table layui-input-block">
                        <tbody  id="y-img">
                            <tr>
                                <td>
                                    店铺名称
                                </td>
                                <td>
                                	${supplyDetails.shopname}
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    联系人姓名
                                </td>
                                <td>
                                        ${supplyDetails.name}
                                
                                </td>
                            </tr>
                             <tr>
                                  <td>
                                    联系人电话
                                </td>
                                <td>
                                        ${supplyDetails.mobile}
                                
                                </td>
                            </tr>
                            
                            <tr>
                              
                                 <td>
                                    	关联用户member_id
                                </td>
                                <td>
                                	<div><!-- 圆角 id="divcss5" class="layui-circle"都行 -->
                                       <img class="layui-circle" width="45px" src="${supplyDetails.avatar}">  ${supplyDetails.username}
                                    </div> 
                                </td>
                                
                            </tr>
                          
                           
                            <tr>
                                <td>
                                    	分期方案
                                </td>
                                <td>
                                        ${order.hf_id}
                                
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    	分期首付比例
                                </td>
                                <td>
                                        ${order.ho_sf}
                                
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    	分期数
                                </td>
                                <td>
                                        ${order.ho_fq}
                                
                                </td>
                            </tr>
                            
                            <tr>
                                <td>
                                    	创建时间
                                </td>
                                <td>
                                        ${order.ho_createtime}
                                
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    	最新修改时间
                                </td>
                                <td>
                                        ${order.ho_updatetime}
                                
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    	收货地址
                                </td>
                                <td>
                                        ${order.ho_address}
                                
                                </td>
                            </tr>
                             <tr>
                                <td>
                                    	订单状态
                                </td>
                                <td>
                                	<c:if test="${order.ho_status  == 0}">订单已创建</c:if>
                                    <c:if test="${order.ho_status  == 1}">服务中</c:if>
                                	<c:if test="${order.ho_status  == 2}">订单完成</c:if>
                                	<c:if test="${order.ho_status  == -1}">订单作废</c:if>
                                </td>
                            </tr>
                            
                          
                        </tbody>
                    </table>
                </div>
                 
                 
                 
                 
                 
               
	              <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">
                      购买人信息
                    </label>
                    <table  class="layui-table layui-input-block">
                        <tbody  id="y-img">
                            <tr>
                                <td>
                                    	头像
                                </td>
                                <td>
                                	<div><!-- 圆角 id="divcss5" class="layui-circle"都行 -->
                                       <img class="layui-circle" width="45px" src="${order.gm_headimg}">
                                    </div> 
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    	昵称
                                </td>
                                <td>
                                        ${order.gm_nickname}
                                
                                </td>
                            </tr>
                            <tr>
                                <td>
                                   	姓名
                                </td>
                                <td>
                                    ${order.ho_name}
                                </td>
                            </tr>
                            <tr>
                                <td>
                                   	电话
                                </td>
                                <td>
                                    ${order.ho_phone}
                                </td>
                            </tr>
                             <tr>
                                <td>
                                   	订单推荐人
                                </td>
                                <td>
                                    <div><!-- 圆角 id="divcss5" class="layui-circle"都行 -->
                                       <img class="layui-circle" width="45px" src="${order.last_headimg}">${order.last_nickname}
                                    </div> 
                                </td>
                            </tr>
                             <tr>
                                <td>
                                   	一级
                                </td>
                                <td>
                                    <div><!-- 圆角 id="divcss5" class="layui-circle"都行 -->
                                       <img class="layui-circle" width="45px" src="${order.one_headimg}">${order.one_nickname}
                                    </div> 
                                </td>
                            </tr>
                             <tr>
                                <td>
                                   	二级
                                </td>
                                <td>
                                   <div><!-- 圆角 id="divcss5" class="layui-circle"都行 -->
                                       <img class="layui-circle" width="45px" src="${order.two_headimg}">${order.two_nickname}
                                    </div> 
                                </td>
                            </tr>
                          
                        </tbody>
                    </table>
                </div>
              
              
              
	              <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">
                      保险信息
                    </label>
                    <table  class="layui-table layui-input-block">
                        <tbody  id="y-img">
                            <tr>
                                <td>
                                   店内保险
                                </td>
                                <td>
                                 	<c:if test=" ${order.ho_bx == 0}">否</c:if>
                                       <c:if test=" ${order.ho_bx == 1}">是</c:if>
                                
                                </td>
                            </tr>
                            <tr>
                                <td>
                                   保险公司
                                </td>
                                <td>
                                 	${order.ho_bx_name}
                                     
                                </td>
                            </tr>
                            <tr>
                                <td>
                                   保险价格
                                </td>
                                <td>
                                 	${order.ho_bx_money}
                                    
                                </td>
                            </tr>
                            <tr>
                                <td>
                                   保险到期时间
                                </td>
                                <td>
                                 ${order.ho_bx_endtime}
                                   
                                </td>
                            </tr>
                            
                          
                        </tbody>
                    </table>
                </div>  
              
	              <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">
                      其他信息
                    </label>
                    <table  class="layui-table layui-input-block">
                        <tbody  id="y-img">
                            <tr>
                                <td>
                                    	订单价格
                                </td>
                                <td>
                                	${order.ho_price}
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    	支付方式
                                </td>
                                <td>
                                        <c:if test="${order.ho_type == 0}">分期</c:if>
                                       <c:if test="${order.ho_type == 1}">全款</c:if>
                                
                                </td>
                            </tr>
                            <tr>
                                <td>
                                   	订金
                                </td>
                                <td>
                                    ${order.ho_pre_money}
                                </td>
                            </tr>
                            <tr>
                                <td>
                                   	贷款金额
                                </td>
                                <td>
                                    ${order.ho_dk_all_money}
                                </td>
                            </tr>
                            <tr>
                                <td>
                                   	首付
                                </td>
                                <td>
                                    ${order.ho_dk_one_money}
                                </td>
                            </tr>
                             <tr>
                                <td>
                                   贷款状态
                                </td>
                                <td>
                                	<c:if test="${order.ho_dk_status == 0}">待提交材料</c:if>
                                	<c:if test="${order.ho_dk_status == 1}">审核中</c:if>
                                   <c:if test="${order.ho_dk_status == 2}">已放款</c:if>
                                </td>
                            </tr>
                           <tr>
                                <td>
                                   付费状态
                                </td>
                                <td>
                                	<c:if test="${order.ho_pay_status == 0}">未付款</c:if>
                                	<c:if test="${order.ho_pay_status == 1}">付定金</c:if>
                                   <c:if test="${order.ho_pay_status == 2}">首付支付</c:if>
                                    <c:if test="${order.ho_pay_status == 3}">全款支付</c:if>
                                </td>
                            </tr> 
                              <tr>
                                <td>
                                   汽车状态
                                </td>
                                <td>
                                	<c:if test="${order.ho_car_status == 0}">现车</c:if>
                                	<c:if test="${order.ho_car_status == 1}">预定中</c:if>
                                   <c:if test="${order.ho_car_status == 2}">待提车</c:if>
                                    <c:if test="${order.ho_car_status == 3}">已支付</c:if>
                                </td>
                            </tr> 
                          
                        </tbody>
                    </table>
                </div>  
                
	          <div class="layui-form-item">
              <label for="username" class="layui-form-label">
                  订单备注
              </label>
              <div class="layui-input-block">
                  <input type="text" id="username" name="username" required="" lay-verify="required"
                  autocomplete="off" value="${order.ho_desc}" class="layui-input">
              </div>
          </div>  
         <!--  <div class="layui-form-item">
              <label for="username" class="layui-form-label">
                  <span class="x-red">*</span>收货地址
              </label>
              <div class="layui-input-inline">
                  <input type="text" id="username" name="username" required="" lay-verify="required"
                  autocomplete="off" class="layui-input">
              </div>
          </div>
          <div class="layui-form-item">
              <label for="username" class="layui-form-label">
                  <span class="x-red">*</span>配送物流
              </label>
              <div class="layui-input-inline">
                  <select id="shipping" name="shipping" class="valid">
                    <option value="shentong">申通物流</option>
                    <option value="shunfeng">顺丰物流</option>
                  </select>
              </div>
          </div>
          <div class="layui-form-item">
              <label for="username" class="layui-form-label">
                  <span class="x-red">*</span>支付方式
              </label>
              <div class="layui-input-inline">
                  <select name="contrller">
                    <option>支付方式</option>
                    <option>支付宝</option>
                    <option>微信</option>
                    <option>货到付款</option>
                  </select>
              </div>
          </div>
          <div class="layui-form-item">
              <label for="L_email" class="layui-form-label">
                  <span class="x-red">*</span>发票抬头
              </label>
              <div class="layui-input-inline">
                  <input type="text" id="L_email" name="email" required="" lay-verify="email"
                  autocomplete="off" class="layui-input">
              </div>
              <div class="layui-form-mid layui-word-aux">
                  <span class="x-red">*</span>
              </div>
          </div> -->
         <%--  <c:if test="${resultMap == null}">
          	<div class="layui-form-item layui-form-text">
	              <label for="desc" class="layui-form-label">
	               退款信息
	              </label>
	              <div class="layui-input-block">
	                  <table class="layui-table">
	                    <tbody>
	                      <tr>
	                        <td>无退款记录</div></td>
	                      </tr>
	                    </tbody>
	                  </table>
	              </div>
	          </div>
          </c:if> --%>
	        <%--   <c:if test="${resultMap != null}">
		          <div class="layui-form-item layui-form-text">
		              <label for="desc" class="layui-form-label">
		               退款信息
		              </label>
		              <div class="layui-input-block">
		                  <table class="layui-table">
		                    <tbody>
		                      <tr>
		                        <th>商户订单号</th>
		                        <th>交易单号</th>
		                        <th>支付金额</th>
		                        <th>申请退款金额</th>
		                        <th>累计退款金额</th>
		                        <th>退款状态</th>
		                        <th>退款次数</th>
		                        <th>退款成功时间</th>
		                      </tr>
		                      <tr>
		                        <td>${resultMap.out_trade_no}</td>
		                        <td>${resultMap.transaction_id}</td>
		                        <td>${resultMap.total_fee}</td>
		                        <td>${resultMap.refund_fee_0}</td>
		                        <td>${payLog.status}</td>
		                        <td>
		                        	<c:if test="${resultMap.refund_status_0 eq 'SUCCESS'}">
		                        		退款成功
		                        	</c:if>
		                        	<c:if test="${resultMap.refund_status_0 eq 'REFUNDCLOSE'}">
		                        		退款关闭
		                        	</c:if>
		                        	<c:if test="${resultMap.refund_status_0 eq 'PROCESSING'}">
		                        		退款处理中
		                        	</c:if>
		                        	<c:if test="${resultMap.refund_status_0 eq 'CHANGE'}">
		                        		退款异常
		                        	</c:if>
		                        </td>
		                        <td>${resultMap.refund_count}</td>
		                        <td>${resultMap.refund_success_time_0}</td>
		                      </tr>
		                    </tbody>
		                  </table>
		              </div>
		          </div>
	          </c:if> --%>
          
      </form>
    </div>
    <script>
        layui.use(['form','layer'], function(){
            $ = layui.jquery;
          var form = layui.form
          ,layer = layui.layer;
        
          //自定义验证规则
          form.verify({
            nikename: function(value){
              if(value.length < 5){
                return '昵称至少得5个字符啊';
              }
            }
            ,pass: [/(.+){6,12}$/, '密码必须6到12位']
            ,repass: function(value){
                if($('#L_pass').val()!=$('#L_repass').val()){
                    return '两次密码不一致';
                }
            }
          });

          //监听提交
          form.on('submit(add)', function(data){
            console.log(data);
            //发异步，把数据提交给php
            layer.alert("增加成功", {icon: 6},function () {
                // 获得frame索引
                var index = parent.layer.getFrameIndex(window.name);
                //关闭当前frame
                parent.layer.close(index);
            });
            return false;
          });
          
          
        });
    </script>
      
  </body>
</html>